package io.emqx;


/**
 * @author leev
 * Mqtt连接设置
 */
public class MqttConnectConf {
    private String userName;
    private String passwd;
    private String broker;
    private String clientId;

    public MqttConnectConf(String userName, String passwd, String broker, String clientId) {
        this.userName = userName;
        this.passwd = passwd;
        this.broker = broker;
        this.clientId = clientId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getBroker() {
        return broker;
    }

    public void setBroker(String broker) {
        this.broker = broker;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    @Override
    public String toString() {
        return "MqttConnectConf{" +
                "userName='" + userName + '\'' +
                ", passwd='" + passwd + '\'' +
                ", broker='" + broker + '\'' +
                ", clientId='" + clientId + '\'' +
                '}';
    }
}
